package com.atguigu.ssyx.activity.service.impl;

import com.atguigu.ssyx.model.activity.SeckillTime;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.atguigu.ssyx.activity.service.SeckillTimeService;
import com.atguigu.ssyx.activity.mapper.SeckillTimeMapper;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
* @author LiJun
* @description 针对表【seckill_time(秒杀活动场次)】的数据库操作Service实现
* @createDate 2025-05-11 20:52:31
*/
@Service
public class SeckillTimeServiceImpl extends ServiceImpl<SeckillTimeMapper, SeckillTime>
    implements SeckillTimeService{

    @Override
    public void updateStatus(Long id, Integer status) {
        SeckillTime seckillTime = new SeckillTime();
        seckillTime.setId(id);
        seckillTime.setStatus(status);
        this.updateById(seckillTime);
    }

    @Override
    public void saveSeckillTimeListToCache() {

    }

    @Override
    public List<SeckillTime> findAllSeckillTimeListFromCache() {
        return null;
    }

    @Override
    public Map<String, Object> findHomeData() {
        return null;
    }
}




